<%@ page language="java" pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp"%>

<div class="portlet">
	<!-- Start Portlet -->
	<h2 style="background-color: #3d9ecc; color: #FFFFFF;">
		站内资讯&nbsp;&nbsp;|&nbsp;&nbsp;更多
	</h2>
	<div class="portletcontent">
		<div class="bi">
			<!-- Visual Content for Portlet below -->
			<dl>
				<c:forEach var="aL" items="${A_LIST}" varStatus="status">
					<dt>
						${fn:substring(aL.articleKeywords,0,4)}&nbsp;&nbsp;|&nbsp;&nbsp;
						<a href="getArticle?articleId=${aL.articleId}">
							${aL.articleTitle }</a>
						<div align="right">
							<fmt:formatDate value="${aL.articleCreateTime }"
								pattern="yyyy/MM/dd" />
						</div>
					</dt>
				</c:forEach>
			</dl>
			<div class="bb">
				<div></div>
			</div>
		</div>
	</div>
	<!-- End Portlet Content-->
</div>
<!-- End Portlet -->

<div class="portlet">
	<!-- Start Portlet -->
	<h2 style="background-color: #3d9ecc; color: #FFFFFF;">
		网友资讯分享
	</h2>
	<div class="portletcontent">
		<div class="bi">
			<!-- Visual Content for Portlet below -->
			<dl>
				<c:choose>
					<c:when test="${pm.result eq null}">
						<tr>
							<td colspan="7">
								数据丢失，请稍后再试用！
							</td>
						</tr>
					</c:when>
					<c:otherwise>
						<c:forEach var="article" items="${pm.result}" varStatus="status">
							<div class="newslist">
								<dl>
									<dt class="topic">
										<img src="images/icons/news.png"/ width="25" height="25">&nbsp;
										<a href="getArticle?articleId=${article.articleId }"
											target="_blank"><strong>${article.articleTitle}</strong>
										</a>
									</dt>
									<dt>
										<p class="news">
											${article.userName} | 发布于 <fmt:formatDate value="${aL.articleCreateTime }" pattern="yyyy/MM/dd" /> |  新闻来源:原创文章
									    </p>
									</dt>
								</dl>

								<dl>
									<dd class="desc">
										<span>${fn:substring(fht:delHTMLTag(article.articleContent),0,100)}...</span>
									</dd>
								</dl>

								<dl>
									<dd class="detail">
										<span><a
											href="getArticle?articleId=${article.articleId}"
											target="_blank"><strong>详细内容</strong> </a> </span>
									</dd>
								</dl>
							</div>
						</c:forEach>
					</c:otherwise>
				</c:choose>
			</dl>
			<div class="bb">
				<div></div>
			</div>
		</div>
	</div>
	<!-- End Portlet Content-->
</div>
<!-- End Portlet -->

<div class="pagination" align="center">
	<c:if test="${pm.result ne null}">
		<script>
         	var pg = new showPages('pg');
         	pg.pageCount = ${pm.maxPage};
         	pg.argName = 'currentPage';
         	pg.printHtml();
         </script>
	</c:if>
</div>
</br>